'use strict';
const _0x5691 = [
    'syZlp',
    '2ziLgAw',
    '4879CfPmFs',
    'vrVNO',
    '#2e2c29',
    'ver',
    '&mode=',
    '209751fzgCwt',
    'index.html',
    'v.switchMo',
    'webContent',
    'tbZSI',
    '788656agQnkS',
    'file://',
    'Cocos\x20Insp',
    'versions',
    'split',
    'exports',
    'de(',
    '3mhuswM',
    'previewPor',
    'electron.h',
    '583596srclzm',
    'closed',
    'mainPreloa',
    '1yXjTJG',
    'PreviewSer',
    'showWindow',
    'executeJav',
    'aScript',
    '664813TPEwpu',
    'electron',
    'show',
    'dow',
    '?port=',
    'process',
    'join',
    'tryShowWin',
    'path',
    'how',
    'vWFLM',
    'aUXRk',
    'error',
    'ready-to-s',
    'json',
    'setMenu',
    'name',
    '484322oJjwjM',
    '12VLsKxR',
    'index_low_',
    'fUaKN',
    '10711FjGvjJ',
    'tml',
    './package.',
    'loadURL',
    'd.js',
    'GMOGt',
    'ector\x20Lite',
    'DNMfs'
];
const _0x55bdb0 = _0x25e3;
(function (_0x32404b, _0x1497be) {
    const _0x2408bc = _0x25e3;
    while (!![]) {
        try {
            const _0x46287f = parseInt(_0x2408bc(0x1a6)) * parseInt(_0x2408bc(0x1bc)) + -parseInt(_0x2408bc(0x1bd)) * -parseInt(_0x2408bc(0x18f)) + parseInt(_0x2408bc(0x1ab)) + -parseInt(_0x2408bc(0x199)) + parseInt(_0x2408bc(0x18e)) * parseInt(_0x2408bc(0x185)) + parseInt(_0x2408bc(0x194)) * -parseInt(_0x2408bc(0x1a0)) + parseInt(_0x2408bc(0x1a3));
            if (_0x46287f === _0x1497be)
                break;
            else
                _0x32404b['push'](_0x32404b['shift']());
        } catch (_0x15d840) {
            _0x32404b['push'](_0x32404b['shift']());
        }
    }
}(_0x5691, -0x3c2b * 0xb + -0x9b3f8 + 0xd * 0x1689d));
function _0x25e3(_0x4f6045, _0x4cba9a) {
    _0x4f6045 = _0x4f6045 - (-0x4 * -0x6cb + -0x173c + -0x26d);
    let _0x48f4ff = _0x5691[_0x4f6045];
    return _0x48f4ff;
}
const {BrowserWindow, app, remote, ipcMain} = require(_0x55bdb0(0x1ac)), path = require(_0x55bdb0(0x1b3)), pcs = require(_0x55bdb0(0x1b0)), folder = '', devTools = ![];
let win, mode = -0x2005 + 0x1 * 0x2259 + -0x254, unloaded = ![];
const PKG_NAME = require(_0x55bdb0(0x187) + _0x55bdb0(0x1b9))[_0x55bdb0(0x1bb)];
module[_0x55bdb0(0x19e)] = {
    'load'() {
    },
    'unload'() {
        unloaded = !![];
    },
    'showWindow'() {
        const _0x4cd8e0 = _0x55bdb0, _0x20c301 = {
                'aUXRk': _0x4cd8e0(0x19b) + _0x4cd8e0(0x18b),
                'tbZSI': _0x4cd8e0(0x191),
                'vrVNO': _0x4cd8e0(0x1b8) + _0x4cd8e0(0x1b4),
                'DNMfs': _0x4cd8e0(0x1a4),
                'vWFLM': function (_0x493664, _0x491484) {
                    return _0x493664 >= _0x491484;
                },
                'syZlp': function (_0x45d655, _0x59e446) {
                    return _0x45d655 + _0x59e446;
                },
                'fUaKN': _0x4cd8e0(0x1af),
                'GMOGt': _0x4cd8e0(0x193)
            };
        if (win) {
            win[_0x4cd8e0(0x1ad)](), win[_0x4cd8e0(0x197) + 's'][_0x4cd8e0(0x1a9) + _0x4cd8e0(0x1aa)](_0x4cd8e0(0x196) + _0x4cd8e0(0x19f) + mode + ')');
            return;
        }
        win = new BrowserWindow({
            'minWidth': 0x36e,
            'minHeight': 0x258,
            'width': 0x36e,
            'height': 0x258,
            'title': _0x20c301[_0x4cd8e0(0x1b6)],
            'backgroundColor': _0x20c301[_0x4cd8e0(0x198)],
            'useContentSize': ![],
            'webPreferences': {
                'enablePreferredSizeMode': !![],
                'preferredSizeMode': !![],
                'webviewTag': !![],
                'nodeIntegration': !![],
                'enableRemoteModule': !![],
                'devTools': devTools,
                'preload': path[_0x4cd8e0(0x1b1)](__dirname, folder + (_0x4cd8e0(0x1a5) + _0x4cd8e0(0x189)))
            }
        }), win[_0x4cd8e0(0x1ba)](null), win['on'](_0x20c301[_0x4cd8e0(0x190)], () => win[_0x4cd8e0(0x1ad)]()), win['on'](_0x20c301[_0x4cd8e0(0x18c)], () => {
            win = null;
        });
        let _0x583eeb = folder + (_0x4cd8e0(0x183) + _0x4cd8e0(0x1a2) + _0x4cd8e0(0x186));
        _0x20c301[_0x4cd8e0(0x1b5)](process[_0x4cd8e0(0x19c)][_0x4cd8e0(0x1ac)][_0x4cd8e0(0x19d)]('.')[-0x29b + -0xe * -0x95 + 0x58b * -0x1], 0x2147 + 0x1366 + -0x1a54 * 0x2) && (_0x583eeb = folder + _0x4cd8e0(0x195));
        let _0x3d9b8a = path[_0x4cd8e0(0x1b1)](__dirname, _0x20c301[_0x4cd8e0(0x18d)](_0x20c301[_0x4cd8e0(0x18d)](_0x20c301[_0x4cd8e0(0x18d)](_0x20c301[_0x4cd8e0(0x18d)](_0x583eeb, _0x20c301[_0x4cd8e0(0x184)]), Editor[_0x4cd8e0(0x1a7) + _0x4cd8e0(0x192)][_0x4cd8e0(0x1a1) + 't']), _0x20c301[_0x4cd8e0(0x18a)]), mode));
        win[_0x4cd8e0(0x188)](_0x4cd8e0(0x19a) + _0x3d9b8a);
    },
    'tryShowWindow'(_0x11c6de) {
        const _0x948570 = _0x55bdb0;
        mode = _0x11c6de;
        try {
            this[_0x948570(0x1a8)]();
        } catch (_0x597705) {
            Editor[_0x948570(0x1b7)](_0x597705);
        }
    },
    'messages': {
        'previewMode'() {
            const _0x449634 = _0x55bdb0;
            if (unloaded)
                return;
            this[_0x449634(0x1b2) + _0x449634(0x1ae)](0x1af4 + 0x362 + 0x2c2 * -0xb);
        },
        'buildMode'() {
            const _0x232f94 = _0x55bdb0;
            if (unloaded)
                return;
            this[_0x232f94(0x1b2) + _0x232f94(0x1ae)](0x1f71 + 0x5a6 + 0x65 * -0x5e);
        }
    }
};